package com.breakfast.fun.ui.user.order;

import com.breakfast.fun.base.BaseModel;
import com.breakfast.fun.base.BasePresenter;
import com.breakfast.fun.base.BaseView;
import com.breakfast.fun.data.entity.user.order.Order;
import com.breakfast.fun.data.entity.user.recharge.PayBean;
import com.breakfast.fun.data.entity.user.recharge.RechargeMoney;

import java.util.Map;

import retrofit2.http.FieldMap;
import rx.Observable;

/**
 * Created by Administrator on 2016/8/30.
 */
public interface BFOrderContract {
    interface Model extends BaseModel {
        Observable<Order> getBFOrderModel(@FieldMap Map<String, String> map);

        Observable<RechargeMoney> getPayBeanModel(@FieldMap Map<String, String> map);
    }

    interface View extends BaseView {
        void showBFOrder(Order order);

        void loadBFOrder(Order order);

        void toPay(PayBean payBean);

        void stopRefresh();
    }

    abstract class Presenter extends BasePresenter<Model, View> {
        public abstract void getBFOrder();

        public abstract void loadBFOrder(int begin);

        public abstract void getPayBean(String orderNo);
    }

}
